package com.xbao.service.impl;

import com.xbao.dao.LesCheckMapper;
import com.xbao.model.LesCheck;
import com.xbao.model.req.LesCheckReq;
import com.xbao.service.LesCheckSerivce;
import com.xbao.service.LessionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by qingshengzheng on 18/8/30.
 */
@Service
public class LesCheckServiceImpl  implements LesCheckSerivce{
    private LesCheckMapper checkMapper;
    @Override
    public void addLesCheck(LesCheckReq checkReq) {
        checkMapper.addLesCheck(checkReq);

    }

    @Override
    public void deleteLesCheck(Long id) {
        checkMapper.deleteLesCheck(id);

    }

    @Override
    public void detailLesCheck(Long id) {
        checkMapper.detailLesCheck(id);

    }

    @Override
    public List<LesCheck> queryLesChecks(LesCheckReq req) {
       List<LesCheck> lesChecks= checkMapper.queryLesChecks(req);
        return lesChecks;
    }
}
